import 'dart:typed_data';
import 'package:sow_app_core/sow_app_core.dart';

class MockRestClient implements RestClient {
  String _authorization = "";
  String _host = "127.0.0.1";
  int _port = 8083;

  @override
  int get port => _port;
  @override
  String get host => _host;
  @override
  String get authorization => _authorization;

  @override
  setAuthorization(value) {
    _authorization = value;
  }

  @override
  setHostEnv(String host, int port) {
    _host = host;
    _port = port;
  }

  @override
  invokeHttp(String path, RequestType type,
          {dynamic body, String? contentType}) async =>
      null;

  @override
  Future<Uint8List> getFile(String path) async => Uint8List.fromList([]);
}
